import { http } from "../http";

// 库存管理-入库单分页查询
export function listPutPage(data: object) {
  return http({ url: "/api/listPutPage", data });
}
//入库单批量删除
export function BatchdeletePut(data: object) {
  return http({ url: "/api/deletePutAll", data });
}
//入库单删除
export function DeletePut(data: object) {
  return http({ url: "/api/deletePut", data });
}
/**************************入库单新增详情页***********************/
// 物资管理分页
export function goodsListPage(data: object) {
  return http({ url: "/goods/listPage", data });
}
// 入库单新增
export function AddPut(data: object) {
  return http({ url: "/api/savePut", data });
}
// 入库单修改
export function UpdatePut(data: object) {
  return http({ url: "/api/updatePut", data });
}
//入库单查询详情
export function getPutDetail(data: object) {
  return http({ url: "/api/findPut", data });
}
//入库单提交
export function submitPut(data: object) {
  return http({ url: "/api/submitPutGoods", data });
}
//库位查询
export function getPositionList(data: object) {
  return http({ url: "/api/listTreeBox", data });
}
// 批量添加入库单物资
export function saveBatchPutGoods(data: object) {
  return http({ url: "/api/saveBatchPutGoods", data });
}
// 入库单物资列表
export function getAddGoodsList(data: object) {
  return http({ url: "/api/listPutGoodsPage", data });
}
